// Fill out your copyright notice in the Description page of Project Settings.


#include "Character/AnimInstance/RPGAnimInstanceZD.h"

#include "Character/RPGCharacterZD.h"

void URPGAnimInstanceZD::OnInit_Implementation()
{
	OwnerCharacter = Cast<ARPGCharacterZD>(GetOwningActor());
	checkf(OwnerCharacter, TEXT("未获取到动画蓝图拥有者"));
}

void URPGAnimInstanceZD::OnTick_Implementation(float DeltaTime)
{
	bHasAcceleration = OwnerCharacter->GetVelocity().SizeSquared2D() > 0.0f;
}
